import {httpInstance} from "@/api/index";
import {postConfig} from '@/lib/RequestBuilder'
import {getConfig} from "@/lib/RequestBuilder";

const dict_prefix="/sys_dict"

export const listDict = (param) =>{
    let config = postConfig(dict_prefix+"/list",param);
    return httpInstance.request(config)
}

export const addDict = (param) =>{
    let config = postConfig(dict_prefix+"/add",param);
    return httpInstance.request(config)
}

export const updateDict = (param) =>{
    let config = postConfig(dict_prefix+"/update",param);
    return httpInstance.request(config)
}

export const deleteDict = (param) =>{
    let config = postConfig(dict_prefix+"/delete",param);
    return httpInstance.request(config)
}

